package com.sc.design.PK.create.fac_builder.fac;

/**
 * @author sc
 * Created on  2017/12/7
 */
public class Factory {
    public ISuperMan create(String type){
        if(type.equalsIgnoreCase("adult")){
            return new AdultSuperMan();
        }else{
            return new YoungSuperMan();
        }
    }
}
